<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1494659">
<div id="container" style="container-type:inline-size;">
  <div id="other"></div>
  <div id="foo"></div>
</div>
<script>
  document.body.offsetTop;
  container.style.width = "100px";
  other.style.color = "pink";
  foo.remove();
</script>
